package com.wanmait.recruitment.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.recruitment.mapper.CarouselMapper;
import com.wanmait.recruitment.pojo.Carousel;
import com.wanmait.recruitment.service.CarouselService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class CarouselServiceImpl implements CarouselService {
    @Resource
    private CarouselMapper carouselMapper;
    @Override
    public void insert(Carousel object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Carousel object) {

    }

    @Override
    public Carousel findById(Integer id) {
        return null;
    }

    @Override
    @Cacheable("carouselCache")
    public List<Carousel> findAll() {
        return carouselMapper.selectList();
    }

    @Override
    public List<Carousel> findAll(Carousel object) {
        return null;
    }

    @Override
    public PageInfo<Carousel> findPage(int pageNum, int pageSize) {
        return null;
    }
}


